<div class="drugsSales view">
<h2><?php  echo __('Drugs Sale'); ?></h2>
	<dl>
		<dt><?php echo __('Id'); ?></dt>
		<dd>
			<?php echo h($drugsSale['DrugsSale']['id']); ?>
			&nbsp;
		</dd>
		<dt><?php echo __('Date'); ?></dt>
		<dd>
			<?php echo h($drugsSale['DrugsSale']['date']); ?>
			&nbsp;
		</dd>
		<dt><?php echo __('User'); ?></dt>
		<dd>
			<?php echo $this->Html->link($drugsSale['User']['name'], array('controller' => 'users', 'action' => 'view', $drugsSale['User']['id'])); ?>
			&nbsp;
		</dd>
		<dt><?php echo __('Modified'); ?></dt>
		<dd>
			<?php echo h($drugsSale['DrugsSale']['modified']); ?>
			&nbsp;
		</dd>
		<dt><?php echo __('Created'); ?></dt>
		<dd>
			<?php echo h($drugsSale['DrugsSale']['created']); ?>
			&nbsp;
		</dd>
	</dl>
</div>
<div class="actions">
	<h3><?php echo __('Actions'); ?></h3>
	<ul>
		<li><?php echo $this->Html->link(__('Edit Drugs Sale'), array('action' => 'edit', $drugsSale['DrugsSale']['id'])); ?> </li>
		<li><?php echo $this->Form->postLink(__('Delete Drugs Sale'), array('action' => 'delete', $drugsSale['DrugsSale']['id']), null, __('Are you sure you want to delete # %s?', $drugsSale['DrugsSale']['id'])); ?> </li>
		<li><?php echo $this->Html->link(__('List Drugs Sales'), array('action' => 'index')); ?> </li>
		<li><?php echo $this->Html->link(__('New Drugs Sale'), array('action' => 'add')); ?> </li>
		<li><?php echo $this->Html->link(__('List Users'), array('controller' => 'users', 'action' => 'index')); ?> </li>
		<li><?php echo $this->Html->link(__('New User'), array('controller' => 'users', 'action' => 'add')); ?> </li>
		<li><?php echo $this->Html->link(__('List Drugs'), array('controller' => 'drugs', 'action' => 'index')); ?> </li>
		<li><?php echo $this->Html->link(__('New Drug'), array('controller' => 'drugs', 'action' => 'add')); ?> </li>
	</ul>
</div>
<div class="related">
	<h3><?php echo __('Related Drugs'); ?></h3>
	<?php if (!empty($drugsSale['Drug'])): ?>
	<table cellpadding = "0" cellspacing = "0">
	<tr>
		<th><?php echo __('Id'); ?></th>
		<th><?php echo __('Nome'); ?></th>
		<th><?php echo __('Marca'); ?></th>
		<th><?php echo __('Composicao Quimica'); ?></th>
		<th><?php echo __('Medicamento Generico'); ?></th>
		<th><?php echo __('User Id'); ?></th>
		<th><?php echo __('Created'); ?></th>
		<th><?php echo __('Modified'); ?></th>
		<th class="actions"><?php echo __('Actions'); ?></th>
	</tr>
	<?php
		$i = 0;
		foreach ($drugsSale['Drug'] as $drug): ?>
		<tr>
			<td><?php echo $drug['id']; ?></td>
			<td><?php echo $drug['nome']; ?></td>
			<td><?php echo $drug['marca']; ?></td>
			<td><?php echo $drug['composicao_quimica']; ?></td>
			<td><?php echo $drug['medicamento_generico']; ?></td>
			<td><?php echo $drug['user_id']; ?></td>
			<td><?php echo $drug['created']; ?></td>
			<td><?php echo $drug['modified']; ?></td>
			<td class="actions">
				<?php echo $this->Html->link(__('View'), array('controller' => 'drugs', 'action' => 'view', $drug['id'])); ?>
				<?php echo $this->Html->link(__('Edit'), array('controller' => 'drugs', 'action' => 'edit', $drug['id'])); ?>
				<?php echo $this->Form->postLink(__('Delete'), array('controller' => 'drugs', 'action' => 'delete', $drug['id']), null, __('Are you sure you want to delete # %s?', $drug['id'])); ?>
			</td>
		</tr>
	<?php endforeach; ?>
	</table>
<?php endif; ?>

	<div class="actions">
		<ul>
			<li><?php echo $this->Html->link(__('New Drug'), array('controller' => 'drugs', 'action' => 'add')); ?> </li>
		</ul>
	</div>
</div>
